package com.ktjiaoyu.service;

import com.ktjiaoyu.entity.ComputerRoom;
import com.ktjiaoyu.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ComputerRoomService {
    public Page<ComputerRoom> getPage(@Param("computerRoom") ComputerRoom computerRoom,
                                      @Param("pageNo") Integer pageNo,
                                      @Param("pageSize") Integer pageSize);

    public boolean insert(ComputerRoom computerRoom);

    public boolean delete(@Param("roomId") Integer roomId);

    public boolean update(ComputerRoom computerRoom);

    //详情
    public ComputerRoom getId(@Param("roomId") Integer roomId);

    //根据名字查重
    public ComputerRoom getRoomName(@Param("roomName") String roomName);
}
